import com.baoxian.workschedule.TaskWorkSchedule
import com.baoxian.workschedule.util.ConstantsUtil

/**
 * Desc: 
 * User: ZhengCongChun
 * Date: 13-9-5
 * Time: 下午6:24
 * @Version 1.0
 */
class RefreshConfigInofTest extends GroovyTestCase {
//    String configFilePath = "D:\\work\\projects\\workschedule\\trunk\\baoxian-task-work-schedule\\src\\main\\resources\\baoxian-task-workschedule.xml"

    public void testRefresh() {
       // TaskWorkScheduleXmlLoader.init(configFilePath)

        while(true) {
            TaskWorkSchedule.getInstance().refeshConfigInfo()
            println(TaskWorkSchedule.getInstance().isCanProcessTask('1244000000', ConstantsUtil.TASK_TYPE_PAYMENT, '2013-09-01 10:10:10'))
            sleep(10000)
        }

    }
}
